package com.itheima.domain.message;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Communication implements Serializable {
    private String id;

    private String senderId;

    private String sender;

    private String senderEmail;
    @DateTimeFormat(pattern = "yyyy-MM-dd DD:mm:ss")
    private Date sendTime;

    private String senderPhone;

    private String title;

    private String content;

    private String state;

    private String pid;

    private String recipientId;

    private String recipient;

    private String recipientEmail;
    @DateTimeFormat(pattern = "yyyy-MM-dd DD:mm:ss")
    private Date receivedTime;

    private String senderTop;

    private String createBy;

    private String createDept;
    @DateTimeFormat(pattern = "yyyy-MM-dd DD:mm:ss")
    private Date createTime;

    private String companyId;

    private String companyName;

    private String senderState;

    private String recipientState;

    private String recipientTop;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId == null ? null : senderId.trim();
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender == null ? null : sender.trim();
    }

    public String getSenderEmail() {
        return senderEmail;
    }

    public void setSenderEmail(String senderEmail) {
        this.senderEmail = senderEmail == null ? null : senderEmail.trim();
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getSenderPhone() {
        return senderPhone;
    }

    public void setSenderPhone(String senderPhone) {
        this.senderPhone = senderPhone == null ? null : senderPhone.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state == null ? null : state.trim();
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid == null ? null : pid.trim();
    }

    public String getRecipientId() {
        return recipientId;
    }

    public void setRecipientId(String recipientId) {
        this.recipientId = recipientId == null ? null : recipientId.trim();
    }

    public String getRecipient() {
        return recipient;
    }

    public void setRecipient(String recipient) {
        this.recipient = recipient == null ? null : recipient.trim();
    }

    public String getRecipientEmail() {
        return recipientEmail;
    }

    public void setRecipientEmail(String recipientEmail) {
        this.recipientEmail = recipientEmail == null ? null : recipientEmail.trim();
    }

    public Date getReceivedTime() {
        return receivedTime;
    }

    public void setReceivedTime(Date receivedTime) {
        this.receivedTime = receivedTime;
    }

    public String getSenderTop() {
        return senderTop;
    }

    public void setSenderTop(String senderTop) {
        this.senderTop = senderTop == null ? null : senderTop.trim();
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getCreateDept() {
        return createDept;
    }

    public void setCreateDept(String createDept) {
        this.createDept = createDept == null ? null : createDept.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId == null ? null : companyId.trim();
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getSenderState() {
        return senderState;
    }

    public void setSenderState(String senderState) {
        this.senderState = senderState == null ? null : senderState.trim();
    }

    public String getRecipientState() {
        return recipientState;
    }

    public void setRecipientState(String recipientState) {
        this.recipientState = recipientState == null ? null : recipientState.trim();
    }

    public String getRecipientTop() {
        return recipientTop;
    }

    public void setRecipientTop(String recipientTop) {
        this.recipientTop = recipientTop == null ? null : recipientTop.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", senderId=").append(senderId);
        sb.append(", sender=").append(sender);
        sb.append(", senderEmail=").append(senderEmail);
        sb.append(", sendTime=").append(sendTime);
        sb.append(", senderPhone=").append(senderPhone);
        sb.append(", title=").append(title);
        sb.append(", content=").append(content);
        sb.append(", state=").append(state);
        sb.append(", pid=").append(pid);
        sb.append(", recipientId=").append(recipientId);
        sb.append(", recipient=").append(recipient);
        sb.append(", recipientEmail=").append(recipientEmail);
        sb.append(", receivedTime=").append(receivedTime);
        sb.append(", senderTop=").append(senderTop);
        sb.append(", createBy=").append(createBy);
        sb.append(", createDept=").append(createDept);
        sb.append(", createTime=").append(createTime);
        sb.append(", companyId=").append(companyId);
        sb.append(", companyName=").append(companyName);
        sb.append(", senderState=").append(senderState);
        sb.append(", recipientState=").append(recipientState);
        sb.append(", recipientTop=").append(recipientTop);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}